//
//  DoctorInfoTableView.m
//  QuickCure
//
//  Created by 凉气的Mac on 16/9/13.
//  Copyright © 2016年 haoge. All rights reserved.
//

#import "DoctorInfoTableView.h"

static NSString *reuserId = @"doctorInfo";

@interface DoctorInfoTableView ()<UITableViewDataSource,UITableViewDelegate>

@end

@implementation DoctorInfoTableView


-(instancetype)initWithFrame:(CGRect)frame style:(UITableViewStyle)style{
    
    if (self = [super initWithFrame:frame style:style]) {
        
        [self setupUI];
        
    }
    
    return self;
}

#pragma mark --
#pragma mark --设置界面
-(void)setupUI{
    
    self.dataSource = self;
    
    self.delegate = self;
    
    [self registerClass:[UITableViewCell class] forCellReuseIdentifier:reuserId];
    
    self.separatorStyle = UITableViewCellSeparatorStyleNone;
}


-(NSInteger)numberOfSectionsInTableView:(UITableView *)tableView{

    return 5;
}

-(NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section{
    
    return 1;
}


-(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{
    
    UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:reuserId];
    
    UIImageView *imageView = [[UIImageView alloc]initWithImage:[UIImage imageNamed:@"jt"]];
    
    cell.accessoryView = imageView;
    
    cell.textLabel.text = [NSString stringWithFormat:@"00000 %zd行",indexPath.section];
    
    return cell;
}

-(CGFloat)tableView:(UITableView *)tableView heightForFooterInSection:(NSInteger)section{

    return 5;
}

-(CGFloat)tableView:(UITableView *)tableView heightForHeaderInSection:(NSInteger)section{

    return 5;
}




@end
